import { useState } from 'react';
import { HuePicker } from 'react-color';

function ChooseColor() {
    const [background, setBackground] = useState('#fff');

    const handleChangeComplete = (color) => {
        console.log(color.hex)
        setBackground(color.hex);
    };

    return (
        <HuePicker
            color={background}
            width='250px'
            // onChangeComplete={handleChangeComplete}
            onChangeComplete={handleChangeComplete}
        />
    );
}
export default ChooseColor